#include <CommandTranslate.h>
Inheritance diagram for CommandTranslate:

Public Member Functions | |
| CommandTranslate (TraffEduObject *obj, osg::Vec3 old_position, osg::Vec3 new_position, OSGWindows *osgwind) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | translatedObjs_ |
| osg::Vec3 | old_position_ |
| osg::Vec3 | new_position_ |
| TraffEduObject * | obj_ |
| int | first_entrance |
|
||||||||||||||||||||
|
A constructor. Initializes osgwind_, old_position_, and new_position_ variables.
|
|
|
do the translation operation.
Implements Command. |
|
|
undo the translation operation.
Implements Command. |
|
|
a private variable. It shows how many times is the execute function is called. |
|
|
a private variable. It is initialized with position of the object(s) after the translation operation. |
|
|
a private variable. It is used to hold the translated object. |
|
|
a private variable. It is initialized with position of the object(s) before the translation operation. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
|
|
a private vector of TraffEduObjects. It holds the translated objects. |
1.4.6-NO